<center>
	<div class="contentIsi">
		<table align="center" width="350px">
			<tr>
				<td>
					<div class="isi noborder">

						<div class="biodata">
							<div class="title_biodata">
								Data Biodata Donatur
							</div>
						</div>
						<br/>
						<div class="biodata" style="margin-left: 100px">
							<div class="item_biodata">
								<span class="label_biodata">Nama : </span>
								<span class="content_biodata"><?php echo $row['nama'] ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">Username : </span>
								<span class="content_biodata"><?php echo $row['username'] ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">Saldo : </span>
								<span class="content_biodata">Rp <?php echo number_format($row['saldo'], 2, '.', ',') ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">Email : </span>
								<span class="content_biodata"><?php echo $row['email'] ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">Kategori : </span>
								<span class="content_biodata"><?php echo $row['jenis'] ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">Bidang kerja : </span>
								<span class="content_biodata"><?php echo $row['pekerjaan'] ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">Alamat : </span>
								<span class="content_biodata"><?php echo $row['alamat'] ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">No. HP : </span>
								<span class="content_biodata"><?php echo $row['nohp'] ?></span>
							</div>
							<div class="item_biodata">
								<span class="label_biodata">Status : </span>
								<span class="content_biodata"><?php echo $row['status'] ?></span>
							</div>
							<br/>
							<center>
								<?php if ((($row['status'] == 'New' || $row['status'] == 'Notified') && $role == 'superadmin') || ($role == 'admin' && $row['status'] == 'Notified' )) { ?>
									<input class="button" type="button" onclick="window.location='<?php echo base_url() ?>admin/ctrl_donatur/change_status/Approved/<?php echo $row['iddonatur'] ?>'" value="Approve"/>
									<input class="button" type="button" onclick="window.location='<?php echo base_url() ?>admin/ctrl_donatur/change_status/Rejected/<?php echo $row['iddonatur'] ?>'" value="Reject"/>
								<?php } ?>
								<?php if ($row['status'] == 'New' && $role == 'superadmin') { ?>
									<input class="button" type="button" onclick="window.location='<?php echo base_url() ?>admin/ctrl_donatur/change_status/Notified/<?php echo $row['iddonatur'] ?>'" value="Notify"/>
								<?php } ?>
								<input class="button" type="button" onclick="window.location='<?php echo base_url() ?>admin/ctrl_donatur/histori_tambahan_donasi/<?php echo $row['iddonatur'] ?>'" value="Tambahan Donasi"/>
								<input class="button" type="button" onclick="window.location='<?php echo base_url() ?>admin/ctrl_donatur'" value="Kembali"/>
							</center>
						</div>
					</div>	
				</td>
			</tr>
		</table>
	</div>
</center>